package com.cnfangmao.masterdata.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import com.cnfangmao.masterdata.model.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 角色权限关系表 Mapper 接口
 * </p>
 *
 * @author chenxd
 * @since 2020-04-17
 */
public interface RolePermissionDao extends BaseMapper<RolePermission> {
	
	@Delete("delete from t_role_permission where role_id = #{roleId}")
	int deleteRolePermission(String roleId);
	
	@Select("select * from t_role_permission  where role_id = #{roleId}")
    List<RolePermission> findRolePermissionByRoleId(String roleId);

}
